chore: unify cross-platform build scripts and configure Windows AppX#1
Open
khaira777 wants to merge 2 commits into
Open
chore: unify cross-platform build scripts and configure Windows AppX#1khaira777 wants to merge 2 commits into
khaira777 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces several quality-of-life improvements to the build pipeline to ensure local development works seamlessly across all operating systems (specifically fixing Windows PowerShell compatibility) and prepares the app for Windows packaging.
Key Changes
cross-env): Addednpx cross-envto thebuild:frontendscript. Previously, Windows PowerShell would throw an error trying to parse inline variables likeNEXT_BUILD_MODE=desktop, preventing Windows devs from building the frontend.kill-port): Added acleanscript that runs beforedevto ensure ports 3001 and 3002 are cleared. This prevents the frequentEADDRINUSEcrash when restarting the dev server.predev): Added agit submodule update --initstep before the dev server boots to prevent developers from accidentally running stale frontend code against new backend changes.appx): Swapped the boilerplateYOUR_PUBLISHER_DISPLAY_NAMEplaceholders inpackage.jsonwith the actual "Codify Apps Private Limited" details to prevent future Microsoft Store certification failures.Testing
Successfully tested on Windows 11 using PowerShell. The dev server boots cleanly, kills old ports, and compiles Next.js without environment variable errors.